modelit.layout.LineBorder

Extends: modelit.layout.AbstractPainter & hgsetget & handle

Border with a line for a modelit.layout.Frame 

Properties

edgecolor

  The color of the border line.
  RGB triple: Default value: [0 0 0]

linestyle

  The linestyle of the border.
  '-' (default) | '--' | ':' | '-.' | 'none'

linewidth

  The width of the border line.
  Integer: Default value: 1

visible

  Determines if the painter is visible.
  Boolean: Default value: true

Help for modelit.layout.LineBorder/visible is inherited from superclass MODELIT.LAYOUT.ABSTRACTPAINTER

Methods

LineBorder

Modelit.layout.LineBorder constructor


CALL:

   obj = modelit.ui.LineBorder(varargin)
 

INPUT:

   varargin:
    parameter-value pairs, see the component properties for a
    description of the parameters and their values

delete

Modelit.layout.LineBorder destructor


CALL:

   delete(obj)
 

INPUT:

   obj:
    modelit.layout.LineBorder

paint

Paint the border


CALL:

   paint(obj, hax, rect, cliprect)
 

INPUT:

   obj:
     modelit.layout.LineBorder
   hax:
     handle of axis in which to paint
   rect:
     rectangle [left bottom width heigth] with painting area
   cliprect:
     rectangle [left bottom width heigth] with clipping area
 

OUTPUT:

   No direct output

getInsets

Get the insets needed to paint this border


CALL:

   getInsets(obj)
 

INPUT:

   obj:
    modelit.layout.LineBorder
 

OUTPUT:

   value:
     [1x4] array with insets (in pixels)

isPainterChanged

Returns if one or more properties have been changed and the painter needs to be reinitialized


CALL:

   value = isPainterChanged(obj)
 

INPUT:

   obj:
     modelit.ui.AbstractPainter
 

OUTPUT:

   value:
     boolean, true if one or more properties have been changed and the painter needs to be reinitialized

Help for modelit.layout.LineBorder/isPainterChanged is inherited from superclass MODELIT.LAYOUT.ABSTRACTPAINTER

setPainterChanged

Set to true to indicate that one or more properties have been changed and the painter needs to be reinitialized


CALL:

   obj = modelit.ui.AbstractPainter(varargin)
 

INPUT:

    obj:
      modelit.ui.AbstractPainter
   value:
     boolean, true if one or more properties have been changed and the painter needs to be reinitialized
 

OUTPUT:

   No output

Help for modelit.layout.LineBorder/setPainterChanged is inherited from superclass MODELIT.LAYOUT.ABSTRACTPAINTER